import request from '@/utils/request'

// 查询销退上架列表
export function listBiProductReturnRestock(query) {
  return request({
    url: '/productAllocation/BiProductReturnRestock/list',
    method: 'get',
    params: query
  })
}

// 新增销退上架
export function getShopReturnNumAndAndCalc(data) {
  return request({
    url: '/productAllocation/BiProductReturnRestock/getShopReturnNumAndAndCalc',
    method: 'post',
    data: data
  })
}
// 新增销退上架
export function getShopReturnNumAndAndCalcList(data) {
  return request({
    url: '/productAllocation/BiProductReturnRestock/getShopReturnNumAndAndCalcList',
    method: 'post',
    data: data
  })
}
// 查询销退上架列表
export function listCalcDetail(query) {
  return request({
    url: '/productAllocation/CalcDetail/list',
    method: 'get',
    params: query
  })
}
// 查询销退上架详细
export function getBiProductReturnRestock(id) {
  return request({
    url: '/productAllocation/BiProductReturnRestock/' + id,
    method: 'get'
  })
}

// 新增销退上架
export function addBiProductReturnRestock(data) {
  return request({
    url: '/productAllocation/BiProductReturnRestock',
    method: 'post',
    data: data
  })
}
// 新增销退上架
export function generateBatchAllocationPlan(data) {
  return request({
    url: '/productAllocation/BiProductReturnRestock/generateBatchAllocationPlan',
    method: 'post',
    data: data
  })
}
// 新增销退上架
export function getShopReturnNumAndRate(data) {
  return request({
    url: '/productAllocation/BiProductReturnRestock/getShopReturnNumAndRate',
    method: 'post',
    data: data
  })
}
// 修改销退上架
export function updateBiProductReturnRestock(data) {
  return request({
    url: '/productAllocation/BiProductReturnRestock',
    method: 'put',
    data: data
  })
}

// 删除销退上架
export function delBiProductReturnRestock(id) {
  return request({
    url: '/productAllocation/BiProductReturnRestock/' + id,
    method: 'delete'
  })
}
